import request from '@/router/axios';

//查询柱状和饼状图数据
export const getShapeData = (params) => {
    return request({
        url: '/api/mes-warehouse/stat-storage-age-finished/chart',
        method: 'get',
        params
    });
};

// 分页查询
export const getTableList = (params) => {
    return request({
        url: '/api/mes-warehouse/stat-storage-age-finished/page',
        method: 'get',
        params
    });
};

//查询详情
export const getDetailList = (params) => {
    return request({
        url: '/api/mes-warehouse/stat-storage-age-finished/detail',
        method: 'get',
        params
    });
};

//查询趋势
export const getChartData = (params) => {
    return request({
        url: '/api/mes-warehouse/stat-storage-age-finished/month-list',
        method: 'get',
        params
    });
};
